//
//  UserSettingView.m
//  LoveHealth
//
//  Created by lanou3g on 14-9-23.
//  Copyright (c) 2014年 lanou. All rights reserved.
//

#import "UserSettingView.h"

@interface UserSettingView ()

@end

@implementation UserSettingView
- (void)dealloc
{

    self.allArray = nil;
    self.tableView = nil;
    self.picArray = nil;
    [super dealloc];
}
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        [self setupSubviews];
    }
    return self;
}
- (void)setupSubviews
{
    self.backgroundColor = [UIColor whiteColor];
    _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, self.bounds.size.width, self.bounds.size.height - 49) style:UITableViewStyleGrouped];
    _tableView.backgroundColor = [UIColor grayColor];
    _tableView.alpha = 0.8;
    
    [self addSubview:_tableView];
    
    
    NSMutableArray * group1 = [NSMutableArray arrayWithObjects:@"检测更新",@"清理缓存", nil];
    NSMutableArray * group2 = [NSMutableArray arrayWithObjects:@"隐私声明",@"关于爱健康",@"帮助", nil];
    NSMutableArray * group3 = [NSMutableArray arrayWithObjects:@"注销登录", nil];
    _allArray = [[NSMutableArray alloc] initWithObjects:group1,group2,group3, nil];
    
    UIImage * image1 = [UIImage imageNamed:@"updata.png"];
    UIImage * image2 = [UIImage imageNamed:@"laji.png"];
    UIImage * image3 = [UIImage imageNamed:@"yinsi.png"];
    UIImage * image5 = [UIImage imageNamed:@"about.png"];
    UIImage * image6 = [UIImage imageNamed:@"help.png"];
    UIImage * image7 = [UIImage imageNamed:@"zhuxiao.png"];
    NSMutableArray * array1 = [NSMutableArray arrayWithObjects:image1,image2, nil];
    NSMutableArray * array2 = [NSMutableArray arrayWithObjects:image3,image5,image6, nil];
    NSMutableArray * array3 = [NSMutableArray arrayWithObjects:image7, nil];
    _picArray = [[NSMutableArray alloc]initWithObjects:array1,array2,array3, nil];

  
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
